package com.theeviljames.coursework.receiver;

import java.util.TimerTask;

public class DisplayTask extends TimerTask {

	private Receiver receiver;
	
	public DisplayTask(Receiver receiver) {
		this.receiver = receiver;
	}
	
	public void run() {
		System.out.println(receiver.removeSample());
	}

}
